package com.springboot.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 博客注册码表
 * </p>
 *
 * @author zyj
 * @since 2023-05-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("blog_register_time")
public class BlogRegisterTimeEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 注册邮箱
     */
    @TableField("register_email")
    private String registerEmail;

    /**
     * 注册码
     */
    @TableField("register_code")
    private String registerCode;

    /**
     * 失效时间
     */
    @TableField("lose_time")
    private Date loseTime;

    /**
     * 邮箱发送id
     */
    @TableField("send_id")
    private String sendId;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
